//
//  WaitsendTableViewCell.m
//  ZYShang
//
//  Created by wangguangming on 15/7/29.
//  Copyright © 2015年 Amber. All rights reserved.
//

#import "WaitsendTableViewCell.h"
#import "Base.h"
@implementation WaitsendTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
        {
       
        [self addallviews];
        }
    return self;
}

-(void)addallviews
{    
    UIView *view=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 140)];
    view.backgroundColor=[UIColor whiteColor];
    [self addSubview:view];
    self.oidLaber=[[UILabel alloc] init];
    
    self.oidLaber.frame=CGRectMake(5, 5, WIDTH/3, 20);
    
   
    
    self.addressLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, CGRectGetMaxY(self.oidLaber.frame), WIDTH-10, 20)];
        //[self.addressLaber setAdjustsFontSizeToFitWidth:YES];
    self.tpLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, CGRectGetMaxY(self.addressLaber.frame), WIDTH-10, 20)];
    [self.tpLaber setAdjustsFontSizeToFitWidth:YES];
    self.moneyLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, CGRectGetMaxY(self.tpLaber.frame), WIDTH-10, 20)];
     self.timeLaber=[[UILabel alloc] initWithFrame:CGRectMake(5, CGRectGetMaxY(self.moneyLaber.frame)+3, WIDTH-10, 20)];
    self.oidLaber.textColor=[UIColor grayColor];
    self.addressLaber.textColor=[UIColor grayColor];
    self.tpLaber.textColor=BLUECOLOL;
    self.moneyLaber.textColor=REDCOLOL;
    self.timeLaber.textColor=[UIColor grayColor];
    
    [view addSubview:self.oidLaber];
    [view addSubview:self.addressLaber];
    [view addSubview:self.tpLaber];
    [view addSubview:self.moneyLaber];
    [view addSubview:self.timeLaber];
    UILabel *l=[[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(self.timeLaber.frame)+10, WIDTH, 2)];
    l.backgroundColor=COLOR;
    [view addSubview:l];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
